Methods and systems for caching data communications over computer networks

ABSTRACT

A computer-implemented method of caching multi-session data communications in a computer network, includes the steps of: (a) receiving, intercepting, or monitoring one or more data sessions between a client executing a multi-session application for retrieving a desired content object and one or more metadata services, said client communicating with the one or more metadata services to discover metadata for the content object; (b) analyzing queries and responses exchanged between the client and the one of more metadata services to discover metadata for the content object; (c) receiving or intercepting subsequent data sessions between the client and content sources; (d) identifying a data protocol used by the client and identifying data queries within the data sessions; (e) identifying the content object or portions thereof requested by the client in the data queries; and (f) determining if the content object or portions thereof are stored in cache and, if so, sending the content object or portions thereof stored in cache to the client, and, if not, sending the data queries to the content sources, storing data responses from the content sources, and sending the data responses to the client.

CROSS REFERENCE TO RELATED APPLICATION

This application claims priority from U.S. Provisional PatentApplication No. 61/428,538, filed on Dec. 30, 2010, entitled METHODS ANDSYSTEMS FOR CACHING DATA COMMUNICATIONS OVER COMPUTER NETWORKS, which ishereby incorporated by reference.

BACKGROUND

The present application relates generally to the caching of datacommunications over computer networks such as, e.g., the Internet, alocal area network, a wide area network, a wireless network, and others.

Caching of data communications over computer networks is a well-knownnetwork optimization technique, affording improvement of applicationperformance and optimal utilization of network resources through storingand delivering popular content close to end users.

Content caching solutions have traditionally focused on caching ofclient-server communications, e.g., Web browsing or streaming sessions,where the cache intermediates delivery of content objects (e.g., textfiles and images in case of Web browsing) from server to client.

The content applications supported by the caching solutions are designedto support caching; they do not utilize end-to-end encryption of thedata session, and they have optional client-side explicit support forcaching and utilize well-known data ports (tcp/80 for HTTP, tcp/1935 forRTMP, etc.).

The data sessions established by Web browsing and streaming applicationsare atomic. Each such session incorporates all information needed forthe cache to identify a content query, content object (or portion of it)requested, and address of the content source where the object may bemaintained.

The traditional caching solutions accordingly implement the followingcaching methodology:

-   -   (a1) receiving the data session from the client or (a2)        identifying and intercepting the data session between the client        and content source, using well-known TCP or UDP port or ports or        through Layer7 analysis of the data protocol, using a        redirecting network element or otherwise;    -   (b) parsing the data protocol used by the client to identify a        data query within the session;    -   (c) identifying a unique data object (or portion of it)        requested by the client; and    -   (d1) matching the data query with a data response stored in        cache and sending the response to the client or (d2) propagating        the data query to the server (content source), receiving the        response from the server, optionally storing the response in the        cache, and sending the response to the requesting client.

In recent years, Internet applications have evolved in functionality andcomplexity, using dynamic content object identifiers (e.g., HTTP URLs)that survive in the scope of one download session only, supportingtransfer of the same content object over several concurrent sessions,from multiple content sources, involving multiple dynamic ports,involving end-to-end encryption of the data sessions. These newapplications include multiple types of peer-to-peer (P2P) applicationsfor file sharing and streaming, adaptive bitrate protocols for deliveryof video over HTTP, HTTP download accelerators, and software updateservices such as Microsoft Windows Update.

The peer-to-peer applications typically implement a mechanism of “peerdiscovery” where the client application accesses the P2P network,queries the network to discover content sources that may offer thecontent object, and subsequently establishes data sessions with thesecontent sources, with some of these sessions using end-to-endencryption.

It is a common practice for content sources in P2P networks to usedynamic rather than static “well-known” ports.

P2P applications can employ encryption of the session in such a way asto avoid detection by network elements, using Layer7 criteria forsession identification.

As a result, traditional caching solutions cannot identify and interceptthese data sessions, nor are they able to parse the data protocol toidentify the data query, due to the encryption.

Non-P2P applications (e.g., download accelerators, adaptive bitratevideo clients, software update services, and others) commonly establishmultiple sessions to arrange retrieval of the same content object, whereeach separate session does not offer all the information needed for thecache to identify the requested data object and/or match a data requestwith a data response.

The features exhibited by these new applications obviate traditionalcaching methodology. It would be desirable to provide alternativeapproaches to content caching to support such new applications.

BRIEF SUMMARY OF THE DISCLOSURE

In accordance with one or more embodiments, a computer-implementedmethod of caching multi-session data communications in a computernetwork is provided, including the steps of: (a) receiving,intercepting, or monitoring one or more data sessions between a clientexecuting a multi-session application for retrieving a desired contentobject and one or more metadata services, said client communicating withthe one or more metadata services to discover metadata for the contentobject; (b) analyzing queries and responses exchanged between the clientand the one of more metadata services to discover metadata for thecontent object; (c) receiving or intercepting subsequent data sessionsbetween the client and content sources; (d) identifying a data protocolused by the client and identifying data queries within the datasessions; (e) identifying the content object or portions thereofrequested by the client in the data queries; and (f) determining if thecontent object or portions thereof are stored in cache and, if so,sending the content object or portions thereof stored in cache to theclient, and, if not, sending the data queries to the content sources,storing data responses from the content sources, and sending the dataresponses to the client.

In accordance with one or more embodiments, a computer-implementedcaching service is provided for caching multi-session datacommunications in a computer network. The caching service is configuredto: (a) receive, intercept, or monitor one or more data sessions betweena client executing a multi-session application for retrieving a desiredcontent object and one or more metadata services, said clientcommunicating with the one or more metadata services to discovermetadata for the content object; (b) analyze queries and responsesexchanged between the client and the one of more metadata services todiscover metadata for the content object; (c) receive or interceptsubsequent data sessions between the client and content sources; (d)identify a data protocol used by the client and identify data querieswithin the data sessions; (e) identify the content object or portionsthereof requested by the client in the data queries; and (f) determineif the content object or portions thereof are stored in cache and, ifso, send the content object or portions thereof stored in cache to theclient, and, if not, send the data queries to the content sources, storedata responses from the content sources, and send the data responses tothe client.

BRIEF DESCRIPTION OF THE DRAWINGS

FIG. 1 is simplified diagram illustrating deployment of a cachingservice in accordance with one or more embodiments.

FIG. 2 is a simplified diagram illustrating deployment of a cachingservice in accordance with one or more alternate embodiments.

DETAILED DESCRIPTION

In accordance with various embodiments, a service is provided forcaching of applications that utilize multiple sessions for retrieval ofsame content object (e.g., file or stream).

The multi-session applications supported by the caching service caninclude:

-   -   (a) applications that utilize one or more sessions to discover        information about a content object (hereinafter “content object        meta-data”), that identifies the content sources that the        application contacts to retrieve the content object, data        protocols used to do so, and data queries used to retrieve the        object.    -   (b) applications that utilize multiple sessions to retrieve the        content object, passing information necessary for object        identification only in some of the sessions.        (a) Multi-Session Applications Utilizing Content Object        Meta-Data for Content Object Retrieval

FIG. 1 illustrates an exemplary network architecture illustrating use ofa caching service In accordance with one or more embodiments. Client A₁establishes multiple sessions to one or more meta-data services M on anetwork, sends data queries to retrieve content object meta-data forcontent object Z₁, and receives one or more responses from the meta-dataservices M.

The content object meta-data includes at least one variable, selectedfrom the following:

-   -   (i) addresses of content source(s);    -   (ii) protocols supported by an individual content source;    -   (iii) encryption keys, per object or per individual content        source; and    -   (iv) content object structure.

The content source address can be identified through an IP address,e.g., using IPv4 IP address 1.1.1.1 or IPv6 addressfe80:200:f8ff:fe21:67cf, or using a domain name, e.g.,cache12.bos.us.cdn.net, that can be resolved to IP address using DomainName System (DNS).

The content source address can use either implicitly named port numberfor applications using well-known protocol ports (e.g., port tcp/80 usedby HTTP protocol) or name ports explicitly.

The content source address can be identified in conjunction withprotocols supported by it, including, but not limited to, usinguniversal resource locators (URL), as defined in RFC1738, that specifiesprotocol, content source address, port and remote path to the object.

The content object structure information includes information allowingclient A₁ to form data queries for parts of the object and to verifycorrectness of data responses received in response to such queries.

The content object structure information includes information pertainingto parts comprising the objects, e.g., “pieces” used by Bittorrentprotocol, “parts” used by eDonkey P2P protocol or “playback levels” usedin adaptive bitrate streaming protocols, such as Microsoft SilverlightSmooth Streaming, Adobe HTTP Dynamic Streaming, Apple HTTP LiveStreaming, among others.

The information about content objects parts includes at least one of thefollowing: enumeration of parts of the content object, length of eachpart, data checksum of each part, availability of parts at a specificcontent source, where the content source is identified using contentsource addresses as defined in [0023-0025] above.

The meta-data including all or some of the above information can bestored in a separate file with a pre-defined structure, e.g. a torrentfile for Bittorrent or a manifest file used by Microsoft Silverlightsmooth streaming.

The meta-data services M offering content object meta-data may includededicated network servers designed to support delivery of a specificapplication or one or more content objects (e.g., Bittorrent trackers,ED2K servers, etc.), generic search engines (Google, Microsoft Bing, orothers), a network of computer nodes that collectively stores themeta-data (e.g. distributed hash table networks used by P2Papplications), or other clients that participate in distributed contentsource discovery networks (e.g., distributed hash table networks), orother clients that are downloading and/or serving the content object Z₁and maintain meta-data related to it.

Client A₁ may use multiple meta-data services M to discover contentobject meta-data, where one service M₁ can provide part of the contentobject meta-data and optionally point to another service M₂ to provideanother part.

Thus, for example, client A₁ may retrieve a torrent file from aBittorrent search engine that includes the content object data structureinformation as well as URL of a Bittorrent tracker that provides theinformation of currently active content source addresses.

Client A₁ may continue to send data queries to meta-data services Mduring download of content object Z₁ or portions of it, for purposes ofidentification of new content sources and/or content object structureinformation (for example, in case of object Z₁ being a live stream, ofwhich new parts become continuously available).

In accordance with one or more embodiments, the caching service Creceives and stores data queries and/or responses exchanged betweenclient A₁ and one or more meta-data services M.

In accordance with one or more embodiments, the caching service Cintercepts the sessions between A₁ and M, either by being in data pathbetween A₁ and B, or through use of one or more dedicated redirectiondevices (e.g., a load balancer, a router, a DPI device, etc.) that sitin data path and redirect specific data sessions to the caching serviceC, and relays the data queries and responses between A₁ and M.

In accordance with one or more embodiments, the caching service Cmodifies at least one of the meta-data responses provided by themeta-data service M, e.g., to indicate the caching service C as acontent source or as a meta-data service for the content object Z₁.

In accordance with one or more embodiments, the caching service Creceives a copy of communications between the client A₁ and themeta-data services M, using an optical tap, mirror port or other devicereplicating network traffic.

In accordance with one or more embodiments, the caching service Creceives the data queries related to content object Z₁ from client A₁ byvirtue of offering at least one of the meta-data services M.

In accordance with one or more embodiments, the caching service Csubsequently queries the meta-data services M itself for meta-datarelated to content object Z₁, and receives and stores the responses.

In accordance with one or more embodiments, the caching service Ccontinuously analyzes the queries and responses exchanged between atleast one client A₁ and the meta-data services M, as well as theresponses received by the caching service C directly from the meta-dataservices M, as described above.

As a result, the caching service C maintains content object meta-dataM_(Z) for at least one content object Z₁ that client A₁ is retrieving.

In accordance with one or more embodiments, the caching service C storesmeta-data responses as part of meta-data M_(z) in conjunction with themost recent time the response was received by C.

The caching service C subsequently periodically discards any responsesthat were received more than some time ago based on time-out.

In accordance with one or more embodiments, the caching service monitorsmeta-data requests and responses and discards any stored responses thatcontradict meta-data responses received later.

Following retrieval of meta-data pertaining to the content object Z₁,the client A₁ and at least one of content sources B₁ discovered by theclient A₁ using the meta-data services M, start establishing datasessions with each other, for purpose of retrieving content object Z₁ orpart of it by A₁.

In accordance with one or more embodiments, the caching service Cintercepts the data sessions S₁ established between the client A₁ andthe content sources B₁.

In accordance with one or more embodiments, the caching service Cintercepts the data sessions either by being in a data path between A₁and B₁, or through use of one or more dedicated redirection devices(e.g., load balancer, router, DPI device, etc.) that sit in data pathand redirect specific data sessions to the caching service C.

In accordance with one or more embodiments, the caching service Cintercepts only such sessions that have been established between A₁ andsuch content sources B₁′, that match the meta-data Mz stored for theobject Z₁ by the caching service C.

In accordance with one or more embodiments, the client A₁ establishes atleast one session S₂ with the caching service C, which is identified bythe client A₁ as one of the content sources for the content object Z₁.

In accordance with one or more embodiments, the caching service Cutilizes at least one of the following protocols to interpret dataqueries and data responses in the session S₁ between the client A₁ andcontent source S₁:

-   -   (i) data protocols associated with the client A₁, as part of        meta-data M_(z), as described above;    -   (ii) data protocols associated with the session S₁, as part of        meta-data M_(z), as described above; and    -   (iii) data protocols identified by the caching service C when        analyzing the data queries and responses received in the session        S₁, using signature-based or other generic protocol        identification technique.

In accordance with one or more embodiments, the caching service Cutilizes similar approach for session S₂.

In accordance with one or more embodiments, when failing to identifydata protocol of session S₁ and S₂, using method described in [0048],the caching service C may apply at least one of encryption keys K,stored by C as part of the meta-data Mz, to establish an encryptedsession with either client A₁, or content source B₁, or both.

The encryption keys K may be associated with the content object Z (e.g.,in Bittorrent the hash identifier of object Z is used for encryption ofsessions between Bittorrent peers), or specific content sources.

In accordance with one or more embodiments, following establishment ofdata session with client A₁ and identification of the protocol used inthis session, the caching service C receives data query Q₁ for object Z₁or portion of it from the client A₁.

In accordance with one or more embodiments, the caching service Cidentifies a response matching the query, using the meta-data Mzassociated with the content object Z₁ as described above.

For example, if the client A₁ requests a chunk of 500 Kbps playbacklevel of content object Z₁, available over Microsoft Silverlight smoothstreaming protocol, that starts at offset 0, without identification ofthe end offset, the caching service C may use the meta-data Mzdescribing the object Z₁, to identify the end offset.

In accordance with one or more embodiments, if the matching response R₁to the query Q₁ is stored by the caching service C, C delivers theresponse to the end client A₁.

In accordance with one or more embodiments, the caching service C mayuse the stored meta-data Mz associated with the content object Z toverify the validity of the data response R₁, before sending it to theclient A₁.

In accordance with one or more embodiments, when a matching response tothe query Q₁ is not available at the caching service C and the query Q₁has been sent as part of session S₁ between the client A1 and thecontent source B₁, the caching service C forwards the query to retrievesuch response from the content source B₁, receives and optionally storesthe response and relays the response to the client A₁.

In accordance with one or more embodiments, when a matching response tothe query Q₁ is not found at the caching service C, the caching serviceC sends data query Q₁′ allowing it to respond to the data query Q₁ to atleast one of content sources B, identified by C as carrying the contentobject Z, based on the meta-data Mz stored by C.

Subsequently, the caching service C receives the responses R₁′ for thesequeries, stores them and optionally verifies their validity against themeta-data Mz, and delivers response to the query Q₁ to the client A₁.

In accordance with one or more embodiments, when a matching response tothe query Q₁ is not found at the caching service C, C may redirect theclient A₁ to one of content sources B for the content object Z, asstored by the caching service in the meta-data Mz.

(b) Multi-Session Applications Allowing Identification of Content ObjectOnly in Some Sessions

Client A₂ establishes multiple sessions S₂ to one or more destinationsB₂ to retrieve content object Z₂, in parallel or in series. The clientA₂ sends data queries for portions of the content object Z₂ in each suchsession.

Depending on the naming convention for the content object Z and/or itsparts, used by client A₂ and destination(s) B₂, the caching service C,intercepting or receiving sessions S₂, may not be able to identify thecontent object and/or portions of it requested by client A₂ in eachsession, or identify data responses matching those queries.

The client A₂ and content source(s) B₂ may use dynamic URL (so-called“hashed URLs”) to identify object Z₂ that is assigned uniquely for eachdownload of the content object Z₂. In this case caching service C cannotrely on the data in the data query alone to identify a matchingresponse, but rather analyzes data responses to identify the requestedobject and match it to the previously stored data responses.

According to one or more embodiments, when receiving such data queriesand/or responses in one or more sessions S₂ that allow identification ofthe content object Z, C stores the content object Z₂ identificationtogether with the IP address of client A₂, the IP address of contentsource B₂, and the dynamic content identification (e.g. URL) used byclient A₂, in a list L₂.

According to one or more embodiments, when caching service C receives adata query and/or data response that does not allow it to identify thecontent object Z referenced in the query and/or response, cachingservice C establishes whether the IP address of client A₂, dynamiccontent identification URL, and IP address of content source B₂ arestored in list L₂.

According to one or more embodiments, in case of applications thatutilize multiple content sources, the caching service C may disregardthe IP address of content source B₂.

According to one or more embodiments, caching service C removes entriesfrom list L₄ based on the timeout since last activity seen by client A₂,related to content object Z₂.

The processes of the caching service described above may be implementedin software, hardware, firmware, or any combination thereof. Theprocesses are preferably implemented in one or more computer programsexecuting on a programmable device including a processor, a storagemedium readable by the processor (including, e.g., volatile andnon-volatile memory and/or storage elements), and input and outputdevices. Each computer program can be a set of instructions (programcode) in a code module resident in the random access memory of thedevice. Until required by the device, the set of instructions may bestored in another computer memory (e.g., in a hard disk drive, or in aremovable memory such as an optical disk, external hard drive, memorycard, or flash drive) or stored on another computer system anddownloaded via the Internet or other network.

Having thus described several illustrative embodiments, it is to beappreciated that various alterations, modifications, and improvementswill readily occur to those skilled in the art. Such alterations,modifications, and improvements are intended to form a part of thisdisclosure, and are intended to be within the spirit and scope of thisdisclosure. While some examples presented herein involve specificcombinations of functions or structural elements, it should beunderstood that those functions and elements may be combined in otherways according to the present disclosure to accomplish the same ordifferent objectives. In particular, acts, elements, and featuresdiscussed in connection with one embodiment are not intended to beexcluded from similar or other roles in other embodiments.

Additionally, elements and components described herein may be furtherdivided into additional components or joined together to form fewercomponents for performing the same functions. For example, the cachingservice may comprise one or more physical machines, or virtual machinesrunning on one or more physical machines. In addition, the cachingservice may comprise a cluster of computers or numerous distributedcomputers that are connected by the Internet or another network.

Accordingly, the foregoing description and attached drawings are by wayof example only, and are not intended to be limiting.

What is claimed is:
 1. A non-transitory, computer readable medium havingcode stored therein for caching multi-session data communications in acomputer network, wherein when the code is executed by a processor, theprocessor performs operations comprising: (a) receiving, intercepting,or monitoring one or more data sessions between a client computer systemin the computer network executing a multi-session application forretrieving a desired content object and one or more metadata services,said client communicating with the one or more metadata services todiscover metadata for the content object; (b) analyzing queries andresponses exchanged between the client and the one of more metadataservices to discover metadata for the content object; (c) receiving orintercepting subsequent data sessions between the client and contentsources; (d) identifying a data protocol used by the client computersystem and identifying data queries within the data sessions; (a) (e)identifying the content object or portions thereof requested by theclient computer system in the data queries; and determining if thecontent object or portions thereof are stored in cache and, if so,sending the content object or portions thereof stored in cache to theclient computer system, and, if not, sending the data queries to thecontent sources, storing data responses from the content sources, andsending the data responses to the client.
 2. The non-transitory,computer readable medium of claim 1, wherein step (b) comprisesanalyzing queries and responses exchanged between the client computersystem and the one of more metadata services on an ongoing basis todiscover metadata for the content object.
 3. The non-transitory,computer readable medium of claim 1, wherein step (c) comprisesintercepting only subsequent data sessions having content sources thatare known from the metadata.
 4. The non-transitory, computer readablemedium of claim 1, wherein step (d) comprises using the metadata toidentify the data protocol used by the client computer system and toidentify data queries within the subsequent data sessions.
 5. Thenon-transitory, computer readable medium of claim 1, wherein step (d)comprises using the metadata to detect and decrypt an encrypted protocolused in data sessions.
 6. The non-transitory, computer readable mediumof claim 1, wherein step (e) comprises identifying incomplete data inthe queries or responses to queries, and obtaining further informationfrom the metadata to complete the incomplete data.
 7. Thenon-transitory, computer readable medium of claim 1, wherein step (f)comprises using the metadata to determine if the content object orportions thereof are stored in cache.
 8. The non-transitory, computerreadable medium of claim 1, wherein the non-transitory, computerreadable medium steps are implemented in a caching service, and whereinstep (f) comprises establishing at least one session with the client,said caching service being identified by the client as at least one ofthe content sources for the content object.
 9. The non-transitory,computer readable medium of claim 1, wherein step (f) comprises usingthe metadata to verify the validity of the content object stored incache prior to storing the data responses, and optionally discarding thedata responses that do not match the metadata.
 10. The non-transitory,computer readable medium of claim 1, wherein step (f) comprises usingthe metadata to verify the validity of data responses stored in cache todetermine whether a matching data response or portions thereof arestored in cache, and discarding the data responses that do not match themetadata.
 11. The non-transitory, computer readable medium of claim 1,wherein the metadata identifies addresses of content sources storing thecontent object or portions thereof, data protocols supported by thecontent sources, encryption keys for the content object or contentsources, or content object structure.
 12. The non-transitory, computerreadable medium of claim 1, wherein when the code is executed by theprocessor, the processor performs a further operation comprisingmodifying metadata sent by the one or more metadata services to theclient to indicate a caching service as a content source or as a metadata service for the content object.
 13. The non-transitory, computerreadable medium of claim 1, wherein when the code is executed by theprocessor, the processor performs a further operation comprising sendingqueries to the one or more metadata services for metadata related to thecontent object, and receiving and storing responses to the queries. 14.The non-transitory, computer readable medium of claim 1, wherein whenthe code is executed by the processor, the processor performs a furtheroperation comprising storing metadata received or intercepted from orthrough monitoring of data from the one of more metadata services, anddiscarding stored metadata received more than a given period of timeago.
 15. The non-transitory, computer readable medium of claim 1,wherein when the code is executed by the processor, the processorperforms a further operation comprising storing metadata received fromthe one of more metadata services, and discarding stored metadatacontradicting more recently received metadata.
 16. The non-transitory,computer readable medium of claim 1, wherein the data protocol isassociated with the client computer system or with the session.
 17. Thenon-transitory, computer readable medium of claim 1, wherein the dataprotocol is identified using a signature-based protocol identificationtechnique.
 18. The non-transitory, computer readable medium of claim 1,wherein when the code is executed by the processor, the processorperforms a further operation comprising establishing an encryptedsession with the client and/or the content sources.
 19. Thenon-transitory, computer readable medium of claim 1, wherein when thecode is executed by the processor, the processor performs a furtheroperation comprising using the metadata to identify content sources toretrieve the content object or portions thereof.
 20. The non-transitory,computer readable medium of claim 19, wherein when the code is executedby the processor, the processor performs a further operation comprisingvalidating responses from the content sources using the metadata.